#!/bin/bash

if [[ $(id -u) != 0 ]]; then
    echo "Please run as root or use sudo"
    exit 1
fi

set -e

apt-get install -y man-db bash-completion

# install command-not-found
apt-get install -y command-not-found
apt-file update || apt-get install -y apt-file && apt-file update

# ubuntu do not have this command
update-command-not-found || true

